<?php
function ConnectDB(){
	if(dirname(__FILE__)=='/var/www/hospital'){
        	putenv("ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server");
	}

	$conn = oci_connect("hospital", "hospital", "//localhost/XE"); 
	return $conn;
}
